<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>第十四课 BOM</title>
</head> 
<body>
    <button id="btn1">按钮</button>
    <script>
        var btn1 = document.getElementById('btn1');
        btn1.addEventListener('click',function(){
            // window.open('./test/demo2.html');
            // window.close();
            // window.alert('星星课堂');
            window.confirm('你确定吗？');
        });
        // var a = 100;
        // function fn1(){
        //     alert(200);
        // }
        // console.log(window.document);
        // console.log(window.name);
        // console.log(window.self);
        // console.log(window.outerWidth);
        // console.log(window.outerHeight);
        // console.log(window.innerHeight);
        // console.log(window.innerWidth);
        // console.log(window.innerHeight);
        // console.log(document.documentElement.clientHeight);
        // console.log(document.body.clientHeight);
    </script>
</body> 
</html>